#define installSelectContractButton()
	<div class="form-group">
	    <label class="col-md-2 control-label">合同名称</label>
	    <div class="col-md-4">
	    	<div class="input-group mar-btm col-md-12">
	    		<input type="hidden" id="contractIdStr" name="#(formModelName).contract_id" class="form-control"  value="#(o?o.contract_id:'')">
			    <input type="text" id="contractNameStr" class="form-control"  value="#(contractName)" disabled>
		        #if(view!="detail")
		        	<span class="input-group-btn">
		            	<button class="btn btn-primary" type="button" onclick="openSlectContractDialog()">选择</button>
		            </span>
		        #end
		    </div>
	        <small class="help-block">请选择合同</small>
	    </div>
	    <script>
	    	function openSlectContractDialog(){
	    		layer.open({
					  type: 2,
					  title: false, //不显示标题栏
					  area: ['1000px', '550px'],
					  shade: 0.2,
					  id: 'selectAssetDialog', //设定一个id，防止重复弹出
					  resize: false,
					  closeBtn: false,
					  isOutAnim : false , 
					  btnAlign: 'c',
					  content: ctx+'/admin/oa/contract/openSelectContractDialog',
					  success: function(layero){
						  
					  }
				});
	    	}
	    	function callBackSelectContract(id,name){
	    		$("#contractIdStr").val(id);
	    		$("#contractNameStr").val(name);
	    	}
	    </script>
	</div>
#end